<template>
	<view class="content">
		<view
			class="top-bar flexr align-center"
			:style="{
				'height': `${sysStore.navBarHeight + 40}px`,
				'paddingTop': `${sysStore.statusBarHeight}px`,
			}"
		>
			<view class="waiter flex-1 flexc align-center">
				<image class="user" src="@/subpages/static/shop_removed.png"></image>
				<text class="name">张小莫</text>
			</view>
			<view
				class="back-btn flexr align-center"
				@click="goBack"
				:style="{
					'top': `${sysStore.statusBarHeight}px`,
					'height': `${sysStore.navBarHeight - sysStore.statusBarHeight}px`,
				}"
			>
				<image class="back-icon" src="@/static/arrow_back.png"></image>
				<text>咨询客服</text>
			</view>
		</view>
	</view>
</template>

<script setup>
import { useSysStore } from '@/store/sys.js';
const sysStore = useSysStore()
function goBack() {
	uni.navigateBack()
}
</script>

<style lang="scss">
.content {
	background-color: white;
	.top-bar {
		box-sizing: border-box;
		background-color: white;
		position: relative;
		.waiter {
			border-bottom: 2rpx solid $divider-color;
			padding-bottom: 20rpx;
			.user {
				width: 80rpx;
				height: 80rpx;
				min-width: 80rpx;
				min-height: 80rpx;
				border-radius: 40rpx;
			}
			.name {
				margin-top: 10rpx;
				font-size: 24rpx;
				color: $text-color2;
			}
		}
		.back-btn {
			position: absolute;
			left: 0;
			top: 0;
			padding: 0 32rpx;
			font-size: 35rpx;
			color: $text-color1;
			.back-icon {
				width: 24rpx;
				height: 36rpx;
				margin-right: 15rpx;
			}
		}
	}
}
</style>
